import { createStore, applyMiddleware, } from 'redux';
import {
    createReduxContainer,
    createReactNavigationReduxMiddleware,
    createNavigationReducer,
  } from 'react-navigation-redux-helpers';
import appReducer from './reducer';


const middleware = createReactNavigationReduxMiddleware(
    state => state.nav,
);

const store = createStore(
    appReducer,
    applyMiddleware(middleware),
);

export const getStore = () => {
    return store;
};
